<?php
/**
 * Created by PhpStorm.
 * User: stc17
 * Date: 2020/3/3
 * Time: 10:54
 */

return [
    'http'=>[
        'host'=>'0.0.0.0',
        'port'=>9000,
        'swoole'=> [
            "task_worker_num" => 0,
        ],
       // 'tcpable'=>1,//1为开启 0为关闭
        'rpc'=>[
            'host'=>'127.0.0.1',
            'port'=>9501,
            'swoole_setting'=>[
                'worker_num'=>2
            ]
        ],

    ],
    'ws'=>[
        'host' => '192.168.157.240',                 //服务监听ip
        'port' => 9000,                      //监听端口
        'tcpable'=>1,                        //是否开启tcp监听
        'enable_http' => true,               //是否开启http服务
        'is_handshake'=>true,
        'swoole'=>[
            'task_worker_num'=>0,
            //'daemonize'=> 0,  //是否开启守护进程
        ],
        'rpc'=>[
            'host'=>'127.0.0.1',
            'port'=>'9502',
            'swoole_setting'=>[
                'worker_num'=>'2'
            ]
        ]
    ],
    'route'=>[
      'server'=>[
          'port'=>9500,
          'host'=>'192.168.157.240'
      ],
        'jwt'=>[
            'key'=>'swocloud',
            'alg'=>[
                'HS256'
            ]
        ]
    ],
];